package com.wyh.domain.po.feemanagementpo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * 账单对象
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "账单表")
@Builder
@Accessors(chain = true)
@TableName("bill")
public class Billes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;
    @ApiModelProperty(value = "收款方")
    private String payee;
    @ApiModelProperty(value = "账单编号")
    private Integer billnumber;
    @ApiModelProperty(value = "通知状态")
    private Integer notificationstatus;
    @ApiModelProperty(value = "欠费状态 0已结清，1未结清")
    private Integer arrearsstatus;
    @ApiModelProperty(value = "账期")
    @JsonFormat(pattern = "yyyy-MM")
    private LocalDateTime accounttime;
    @ApiModelProperty(value = "应收金额")
    private BigDecimal receivable;
    @ApiModelProperty(value = "欠费金额")
    private BigDecimal arrears;
    @ApiModelProperty(value = "状态，是否退回")
    private Integer state;
    @ApiModelProperty(value = "催收状态")
    private Integer collectionstatus;
    @ApiModelProperty(value = "楼盘名称")
    private String propertyname;
    @ApiModelProperty(value = "客户名称")
    private String customername;
    @ApiModelProperty(value = "客户id")
    private Integer customerid;
    @ApiModelProperty(value = "滞纳金")
    private BigDecimal laggold;
    @ApiModelProperty(value = "总欠费金额")
    private BigDecimal totalarrears;
    @ApiModelProperty(value = "是否开票{0:未开票,1:已开票}")
    @TableField(exist = false)
    private Integer isinvoiced;
    @ApiModelProperty(value = "每个账单对应的账单详情")
    @TableField(exist = false)
    private List<Billdetailes> billdetailesList;
    @ApiModelProperty(value = "每个账单对应的资源详情")
    @TableField(exist = false)
    private List<Resourcees> resourceesList;

}
